package com.atguigu.gulimall.seckill.feign.fallback;

import com.atguigu.common.exception.BizCodeEnume;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.seckill.feign.ProductFeign;
import org.springframework.stereotype.Component;

@Component
public class SeckillFeignSkillInfo implements ProductFeign {
    @Override
    public R skuInfo(Long skuId) {
        System.out.println("太多请求");
        return R.error(BizCodeEnume.TOO_MANY_REQUEST.getCode(),BizCodeEnume.TOO_MANY_REQUEST.getMessage());
    }
}
